Q and A
A database is an organized collection of structured information or data stored electronically in a computer system, usually managed by a Database Management System (DBMS).
DBMS (Database Management System) is software that allows users to define, create, maintain, manipulate, and control access to the database (e.g., MySQL, Oracle, PostgreSQL).
A relational database stores data in tables (relations) consisting of rows and columns, with relationships between tables.
A data model defines how data is structured, stored, and accessed. Examples: Hierarchical, Network, Relational, ER Model.
Entity-Relationship (ER) Model represents data using entities (objects) and relationships between them.
An entity is an object that exists (physical or abstract) and can be distinguished from others — e.g., Student, Employee.
An attribute is a property or characteristic of an entity — e.g., Name, RollNo, Address of student.
A unique identifier for each record in a table. It cannot contain NULL values.
A field in one table that refers to the primary key of another table, establishing a relationship between them.
A minimal set of attributes that can uniquely identify a record.
A key made up of two or more attributes that together uniquely identify a record.
A key that ensures all values in a column are unique but can contain a single NULL.
A rule applied to a column or table to enforce data integrity (e.g., NOT NULL, UNIQUE, CHECK, FOREIGN KEY).
Structured Query Language.
A virtual table based on the result of a SQL query that does not store data physically.
A precompiled collection of SQL statements that can be executed repeatedly.
A set of instructions that automatically executes in response to certain database events (INSERT, UPDATE, DELETE).
Process of organizing data to reduce redundancy and improve data integrity.
The process of combining normalized tables to improve read performance by reducing joins.
A logical unit of work that contains one or more SQL statements.
A situation where two or more transactions wait indefinitely for each other to release locks.
A mechanism to control concurrent access to data.
Indexing is a technique to speed up data retrieval by creating a data structure (index) based on columns.
Clustered index stores actual data rows in the order of the index; one per table.
Stores pointers to the data rows instead of actual data.
A database object used to retrieve and manipulate rows one by one.
A logical structure that represents the organization of the entire database.
Storing the same data in multiple places unnecessarily.
The accuracy, consistency, and reliability of data throughout its lifecycle.
It is a constrain that ensures foreign key values always refer to existing records in the referenced table.
A database distributed across different physical locations but managed as a single database.
A non-relational database designed for unstructured or semi-structured data (e.g., MongoDB, Cassandra).
A system used for analysis and reporting of large volumes of historical data.
Protecting data from unauthorized access, corruption, or theft.
Creating a copy of database data to restore in case of failure or loss.
Restoring data from backup or transaction logs after a failure.
The rights given to users to perform certain actions (SELECT, INSERT, DELETE, etc.).
An association between two or more tables using primary and foreign keys.
A query nested inside another SQL query.